<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>用户名</label>
              <span>（用户名，主要用于登录）</span>
              <input class="form-control" name="username" placeholder="请输入用户名" value="{$info['username']}" type="text">
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <label>姓名</label>
              <span>（姓名，主要用于显示）</span>
              <input class="form-control" name="nickname" placeholder="请输入姓名" value="{$info['nickname']}" type="text">
            </div>
          </div>

          <div class="col-md-6">
            <div class="form-group">
              <label>学号</label>
              <input class="form-control" name="snumber" placeholder="请输入学号/编号" value="{$info['snumber']}" type="text">
            </div>
          </div>

          <div class="col-md-6">
            <div class="form-group">
              <label>身份证号</label>
              <input class="form-control" name="identity" placeholder="请输入身份证号" value="{$info['identity']}" type="text">
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
                <label>性别</label>
                <div>
                    <label class="margin-r-5"><input type="radio" name="sex" value="1"> 男</label>
                    <label><input type="radio" checked="checked" name="sex"  value="0"> 女</label>
                </div>
            </div>
          </div>

          <div class="col-md-6">
            <div class="form-group">
              <label>年级</label>
              <input class="form-control" name="grade" placeholder="请输入年级" value="{$info['grade']}" type="text">
            </div>
          </div>
<br>
          <div class="col-md-6">
            <div class="form-group">
              <label>角色</label>
              <span class="">用户角色</span>
                <select name="secrity" class="form-control" value="{$info['secrity']}">
                        <option value="0"  >教师</option>
                        <option value="1" >学生</option>
                </select>
            </div>
          </div>
 
          <div class="col-md-6">
            <div class="form-group">
              <label>邮箱</label>
              <span>（用户邮箱，用于找回密码等安全操作）</span>
              <input class="form-control" name="email" placeholder="请输入邮箱" value="{$info['email']}" type="text">
            </div>
          </div>
 
          <div class="col-md-6">
            <div class="form-group">
              <label>手机</label>
              <span>（手机号码，用于找回密码等安全操作）</span>
              <input class="form-control" name="mobile" placeholder="请输入手机号码" value="{$info['mobile']}" type="text">
            </div>
          </div>
            
          <div class="col-md-6">
            <div class="form-group">
                <label>头像图片</label>
                <br/>
                {assign name="head_img_id" value="$info.head_img_id|default='0'" /}
                {:widget('file/index', ['name' => 'head_img_id', 'value' => $head_img_id, 'type' => 'img'])}
            </div>
          </div>
            
        </div>
      </div>
      <div class="box-footer">
        
        <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
          
        {include file="layout/edit_btn_group"/}
        
      </div>
    </div>
</form>


<script type="text/javascript">

    ob.setValue("secrity", {$info['secrity']|default=0});
    ob.setValue("sex", {$info['sex']|default=0});
</script>
